/* 
 * File:   FinderItem.h
 * Author: vicror
 *
 * Created on November 23, 2011, 12:00 AM
 */

#ifndef FINDERITEM_H
#define	FINDERITEM_H
#include "Basic_Knot.h"
#include "basetype.h"

namespace SearchEnginer {

    class FinderItem :public Basic_Knot<FinderItem> {
    public:
        typedef std::vector<FinderItem>::iterator ListItemItr;
        FinderItem();
        FinderItem(const FinderItem& orig);
        virtual ~FinderItem();



        bool operator==(const FinderItem& orig) const;
        bool operator!=(const FinderItem& orig) const;
        bool operator>=(const FinderItem& orig) const;
        bool operator<=(const FinderItem& orig) const;
        bool operator>(const FinderItem& orig) const;
        bool operator<(const FinderItem& orig) const;
        bool operator==(const char& orig) const;
        bool operator!=(const char& orig) const;
        bool operator>=(const char& orig) const;
        bool operator<=(const char& orig) const;
        bool operator>(const char& orig) const;
        bool operator<(const char& orig) const;

        Index index(void) const;
        void setIndex(const Index orig);
        char letter(void) const;
        void setLetter(const char orig);

    private:
        char ch;
        Index _index;


    };
}
#endif	/* FINDERITEM_H */

